﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/NoLeftMasterPage.master"
    AutoEventWireup="true" CodeFile="ViewAccountUnitCost.aspx.cs" Inherits="Pages_ViewAccountUnitCost" %>

<asp:Content ID="Content1" ContentPlaceHolderID="body" runat="Server">
    <div class="right_container" id="right_container">
        <div class="right_title">
            <asp:Label ID="lbTitle" runat="server" Text="Label"></asp:Label>
        </div>
        <div class="right_contract">
            <asp:ObjectDataSource ID="odsData" runat="server" SelectMethod="GetUnitCostListByAccount"
                TypeName="PKURG.CostSplit.Business.UnitCost" 
                OldValuesParameterFormatString="original_{0}">
                <SelectParameters>
                    <asp:QueryStringParameter Name="projectStageId" QueryStringField="Id" Type="String" />
                    <asp:QueryStringParameter Name="accountName" QueryStringField="aid" 
                        Type="String" />
                </SelectParameters>
            </asp:ObjectDataSource>
            <asp:GridView ID="gvUnitCostList" runat="server" AutoGenerateColumns="False" CssClass="List"
                DataSourceID="odsData" DataKeyNames="Dev_FormatID"
                PageSize="50">
                <Columns>
                    <asp:BoundField DataField="Dev_FormatName" HeaderText="业态" ItemStyle-HorizontalAlign="Center"
                        ReadOnly="True">
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundField>
                    <asp:TemplateField HeaderText="总成本（元）">
                        <ItemTemplate>
                        <%# DisplaySumCost(Eval("totalHappenCost"), Eval("totalUnHappenCost")) %>                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="实际已发生成本（元）">
                        <ItemTemplate>
                            <%# DisplayData(Eval("totalHappenCost")) %>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="预计待发生成本（元）">
                        <ItemTemplate>
                            <%# DisplayData(Eval("totalUnHappenCost")) %>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
<%--                    <asp:TemplateField HeaderText="销售面积（m2）">
                        <ItemTemplate>
                        <%# DisplayAreaData(Eval("XS_Area"),Eval("realArea")) %>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="实际已发生成本<br/>销售面积单方成本（元/m2）">
                        <ItemTemplate>
                        <%# DisplayHappendAreaData(Eval("XS_Area"), Eval("realArea"), Eval("totalHappenCost"))%>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="预计待发生成本<br/>销售面积单方成本（元/m2）">
                        <ItemTemplate>
                        <%# DisplayUnHappendAreaData(Eval("XS_Area"), Eval("realArea"), Eval("totalUnHappenCost"))%>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="总成本<br/>销售面积单方成本（元/m2）">
                        <ItemTemplate>
<%# DisplayFinallyData(Eval("XS_Area"), Eval("realArea"),Eval("totalHappenCost"),Eval("totalUnHappenCost"))%>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Right" />
                    </asp:TemplateField>--%>
                </Columns>
            </asp:GridView>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="script" runat="Server">
    <link href="../Resource/css/cs_viewunitcost.css" rel="stylesheet" type="text/css" />
        <script type="text/javascript">
            function load() {
                Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
            }

            function EndRequestHandler() {

            }

    </script>
</asp:Content>
